<{include file="admincp_header.htm"}>
<script>
function delcategory() {
	if(confirm('<{$lan.suredelpage}>')) {
		document.location = "admincp.php?action=deletecategory&id=<{$id}>&vc=<{$vc}>";
	}
}
</script>
<body>
<div class="block"></div>
<table cellpadding="4" cellspacing="1" class="commontable width100">
<form action="admincp.php?action=editcategory&id=<{$id}>" method="post" name="categoryedit">
<tr class="header">
	<td colspan="9"><{$lan.category_edit}></td>
</tr>
<tr>
	<td width="100"><{$lan.category_name}></td>
	<td><input type="text" name="category" value="<{$category}>" class="mustoffer">&nbsp;<input type="button" value="<{$lan.delete}>" name="delete" class="alert" onclick="delcategory()"></td>
</tr>
<tr>
	<td><{$lan.alias}></td>
	<td><input type="text" name="alias" value="<{$alias}>"></td>
</tr>
<tr>
	<td><{$lan.categoryup}></td>
	<td>
<{if $selectcategories}>
		<select name="categoryup">
			<option value="0"><{$lan.rootcategory}></option>
		<{$selectcategories}>
		</select>
<{else}>
<input type="text" size="6" name="categoryup" value="0">
<{/if}>
	</td>
</tr>
<script language="javascript">
document.categoryedit.categoryup.value = <{$categoryup}>;
</script>
<tr>
	<td><{$lan.bindmodule}></td>
	<td>
		<select name="module">
		<{$selectmodules}>
		</select>
	</td>
</tr>
<script language="javascript">
document.categoryedit.module.value = <{$module}>;
</script>
<tr>
	<td><{$lan.description}></td>
	<td><textarea name="description" cols="80" rows="3"><{$description}></textarea></td>
</tr>
<tr>
	<td><{$lan.keywords}></td>
	<td><textarea name="keywords" cols="80" rows="3"><{$keywords}></textarea></td>
</tr>
<tr>
	<td><{$lan.order}></td>
	<td><input type="text" name="order" value="<{$orderby}>"></td>
</tr>
<tr>
	<td><{$lan.path}></td>
	<td><input type="text" name="path" value="<{$path}>"></td>
</tr>
<tr>
	<td><{$lan.itemtemplate}></td>
	<td>
	<select name="itemtemplate">
	<option value=""><{$lan.default}></option>
	<{$selecttemplates}>
	</select>
	</td>
</tr>
<tr>
	<td><{$lan.defaulttemplate}></td>
	<td>
	<select name="defaulttemplate">
	<option value=""><{$lan.default}></option>
	<{$selecttemplates}>
	</select>
	</td>
</tr>
<tr>
	<td><{$lan.listtemplate}></td>
	<td>
	<select name="listtemplate">
	<option value=""><{$lan.default}></option>
	<{$selecttemplates}>
	</select>
	</td>
</tr>
<script>
document.categoryedit.itemtemplate.value = "<{$itemtemplate}>";
document.categoryedit.defaulttemplate.value = "<{$defaulttemplate}>";
document.categoryedit.listtemplate.value = "<{$listtemplate}>";
</script> 
<tr>
	<td><{$lan.ifcreatehtml}></td>
	<td>
		<input type="radio" name="html" value="0"<{if $html eq 0}> checked<{/if}>><{$lan.withglobal}>
		<input type="radio" name="html" value="1"<{if $html eq 1}> checked<{/if}>><{$lan.yes}>
		<input type="radio" name="html" value="-1"<{if $html eq -1}> checked<{/if}>><{$lan.no}>
<script language="javascript">
document.categoryedit.html.value = "<{$html}>";
</script>
	</td>
</tr>
<tr>
	<td><{$lan.ifusefilename}></td>
	<td>
		<input type="radio" name="usefilename" value="0"<{if $usefilename eq 0}> checked<{/if}>><{$lan.withglobal}>
		<input type="radio" name="usefilename" value="1"<{if $usefilename eq 1}> checked<{/if}>><{$lan.yes}>
		<input type="radio" name="usefilename" value="-1"<{if $usefilename eq -1}> checked<{/if}>><{$lan.no}>
<script language="javascript">
document.categoryedit.usefilename.value = "<{$usefilename}>";
</script>
	</td>
</tr>
<tr>
	<td><{$lan.storemethod}></td>
	<td><input type="text" value="<{$storemethod}>" name="storemethod" size="50"><br>
	(<{$lan.leaveempty}>:"<{$setting_storemethod}>"&nbsp;<a href="setting.php?action=generally"><{$lan.modifyglobalsetting}></a>)<br>
	<{$lan.storemethod_description}></td>
</tr>
<tr>
	<td><{$lan.categoryhomemethod}></td>
	<td><input type="text" value="<{$categoryhomemethod}>" name="categoryhomemethod" size="50"><br>
	(<{$lan.leaveempty}>:"<{$setting_categoryhomemethod}>"&nbsp;<a href="setting.php?action=generally"><{$lan.modifyglobalsetting}></a>)<br>
	<{$lan.categoryhomemethod_description}></td>
</tr>
<tr>
	<td><{$lan.categorypagemethod}></td>
	<td><input type="text" value="<{$categorypagemethod}>" name="categorypagemethod" size="50"><br>
	(<{$lan.leaveempty}>:"<{$setting_categorypagemethod}>"&nbsp;<a href="setting.php?action=generally"><{$lan.modifyglobalsetting}></a>)<br>
	<{$lan.pagemethod_description}></td>
</tr>
<tr>
	<td colspan="9" align="center"><input type="submit" value="<{$lan.save}>" name="category_edit_submit"></td>
</tr>
</form>
</table>
</body>
</html>